home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3450 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  889 b 

  1. Path: news.ucdavis.edu!espinoza
  2. From: espinoza@cs.ucdavis.edu (Ricardo E Espinoza-Ibarra)
  3. Newsgroups: comp.lang.c
  4. Subject: What does the -O option do???!!!
  5. Date: 29 Jan 1996 03:55:07 GMT
  6. Organization: University of California, Davis
  7. Message-ID: <4ehger$cj9@mark.ucdavis.edu>
  8. NNTP-Posting-Host: thales.cs.ucdavis.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. Does anyone know what the -O option in gcc C compiler does?  I have tried to compile a program in two different ways: 1) cc -o first first.c, and it worksfine; 2) cc -o first first.c -O, and it runs faster than the other one.  I checked to see if it had changed the program code in anyway, and it hadn't.
  13. This option stands for "optimizer", but I want to know how the heck it optimizes the program!  Please respond as soon as possible.  It is very important!!!!!!!!!!!!!!!!!!!!  :-)
  14.  
  15. Ricardo Espinoza-Ibarra
  16. espinoza@cs.ucdavis.edu
  17.  
  18.  
  19.  
  20.